package com.ws.undercitywarriorsgame.tset;

import com.ws.undercitywarriorsgame.entity.CatYokai;
import com.ws.undercitywarriorsgame.entity.Goblin;
import com.ws.undercitywarriorsgame.entity.Monster;
import lombok.NonNull;

/**
 * @author 王硕
 * @version jdk21
 * @className Test
 * @description
 * @date 2024/11/8 16:54
 */
public class Test {
    public static void main(String[] args) {
        Monster goblin1 = new Goblin("哥布林1", 100, 10, 5, 50);
        Monster goblin2 = new Goblin("哥布林2", 120, 12, 6, 60);
        Monster catYokai1 = new CatYokai("猫妖1", 80, 8, 4);
        Monster catYokai2 = new CatYokai("猫妖2", 90, 9, 5);
        Monster[] monstersArray = {goblin1,goblin2,catYokai1,catYokai2};
        for (Monster monster : monstersArray) {
            monster.attack();
            monster.move();
        }
    }
}
